package com.bsoft.gol.hcs.clinical.bean.req;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.List;


/**
 *
 * 保存诊断入参
 * @author sumu
 */
@XmlRootElement(name = "MsgBody")
public class SaveDiagnoseInformation implements Serializable {

	private String hospitalCode;

	private String patientCode;

	private String cardType;

	private String cardNumber;

	private String emergencyNumber;

	private String consultId;

	private String consultType;

	private byte coverFlag; //1 覆盖  0不覆盖

	private List<DiagnosticInformationRequest> diagnosticInformationList;

	public byte getCoverFlag() {
		return coverFlag;
	}

	public void setCoverFlag(byte coverFlag) {
		this.coverFlag = coverFlag;
	}

	@XmlElement(name = "VisitOrganization")
	public String getHospitalCode() {
		return hospitalCode;
	}

	public void setHospitalCode(String hospitalCode) {
		this.hospitalCode = hospitalCode;
	}

	@XmlElement(name = "SourcePatientId")
	public String getPatientCode() {
		return patientCode;
	}

	public void setPatientCode(String patientCode) {
		this.patientCode = patientCode;
	}

	@XmlElement(name = "IdCardCode")
	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	@XmlElement(name = "IdCard")
	public String getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	@XmlElement(name = "VisitId")
	public String getEmergencyNumber() {
		return emergencyNumber;
	}

	public void setEmergencyNumber(String emergencyNumber) {
		this.emergencyNumber = emergencyNumber;
	}

	@XmlElementWrapper(name = "DiagnoseRecords")
	@XmlElement(name = "DiagnoseRecord")
	public List<DiagnosticInformationRequest> getDiagnosticInformationList() {
		return diagnosticInformationList;
	}

	public void setDiagnosticInformationList(List<DiagnosticInformationRequest> diagnosticInformationList) {
		this.diagnosticInformationList = diagnosticInformationList;
	}

	public String getConsultId() {
		return consultId;
	}

	public void setConsultId(String consultId) {
		this.consultId = consultId;
	}

	public String getConsultType() {
		return consultType;
	}

	public void setConsultType(String consultType) {
		this.consultType = consultType;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("{");
		sb.append("\"hospitalCode\":\"")
				.append(hospitalCode).append('\"');
		sb.append(",\"patientCode\":\"")
				.append(patientCode).append('\"');
		sb.append(",\"cardType\":\"")
				.append(cardType).append('\"');
		sb.append(",\"cardNumber\":\"")
				.append(cardNumber).append('\"');
		sb.append(",\"emergencyNumber\":\"")
				.append(emergencyNumber).append('\"');
		sb.append(",\"consultId\":\"")
				.append(consultId).append('\"');
		sb.append(",\"consultType\":\"")
				.append(consultType).append('\"');
		sb.append(",\"coverFlag\":")
				.append(coverFlag);
		sb.append(",\"diagnosticInformationList\":")
				.append(diagnosticInformationList);
		sb.append('}');
		return sb.toString();
	}
}
